/*
 ******************************************************************
 *      
 * 域名空间　	: GreatB2C.Model
 * 类　名　称	: Model.cs
 * 类　功　能	: 返回数据集是基于Model对象
 * 类　流　程    :                             
 * 运用算法　	:                             
 * 编　写　人	: 王超             
 * 编写日期　	: 2011/4/10
 * 最近更新日期　:	    
 * 版　　本　	: V1.0                           
 * 描　　述　	: Descript of Class                                                 
 *                                        
 ******************************************************************
*/

using System;
using System.Text;

namespace GreatB2C.Model
{
    /// <summary>
    /// Descript of this class
    /// </summary>
    [Serializable]
    public class Model
    {
        // 主键
        protected int _ModelID = 0;

        //其它字段
        protected string _ModelName = String.Empty;
        protected int _ModelType = 0;
        protected string _Description = String.Empty;
        protected string _TableName = String.Empty;
        protected string _ItemName = String.Empty;
        protected string _ItemUnit = String.Empty;
        protected string _ItemIcon = String.Empty;
        protected bool _IsCountHits = false;
        protected bool _Disabled = false;
        protected string _Field = String.Empty;
        protected string _DefaultTemplateFile = String.Empty;
        protected bool _EnableCharge = false;
        protected bool _EnableSignin = false;
        protected string _AddInfoFilePath = String.Empty;
        protected string _ManageInfoFilePath = String.Empty;
        protected string _PreviewInfoFilePath = String.Empty;
        protected string _BatchInfoFilePath = String.Empty;
        protected int _Character = 0;
        protected int _MaxPerUser = 0;
        protected string _PrintTemplate = String.Empty;
        protected bool _EnableVote = false;
        protected string _SearchTemplate = String.Empty;
        protected string _AdvanceSearchFormTemplate = String.Empty;
        protected string _AdvanceSearchTemplate = String.Empty;
        protected string _ChargeTips = String.Empty;
        protected string _NeedPointChargeTips = String.Empty;
        protected string _OutTimeChargeTips = String.Empty;
        protected string _UsePointChargeTips = String.Empty;
        protected string _CommentManageTemplate = String.Empty;
        protected string _AnonymouseTemplate = String.Empty;
        protected string _UserAddContentTemplate = String.Empty;
        protected bool _EnableVerificationCode = false;
        protected bool _EnableWap = false;
        protected string _WapField = String.Empty;


        #region Public Properties
        /// <summary>
        /// 模型ID
        /// </summary>
        public int ModelID
        {
            get { return _ModelID; }
            set { _ModelID = value; }
        }


        /// <summary>
        /// 模型名称
        /// </summary>
        public string ModelName
        {
            get { return _ModelName; }
            set { _ModelName = value; }
        }

        /// <summary>
        /// 模型类型
        /// </summary>
        public int ModelType
        {
            get { return _ModelType; }
            set { _ModelType = value; }
        }

        /// <summary>
        /// 模型描述
        /// </summary>
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        /// <summary>
        /// 模型关联的表名
        /// </summary>
        public string TableName
        {
            get { return _TableName; }
            set { _TableName = value; }
        }

        /// <summary>
        /// 项目名称：如文章、新闻、日志、信息
        /// </summary>
        public string ItemName
        {
            get { return _ItemName; }
            set { _ItemName = value; }
        }

        /// <summary>
        /// 项目单位：如篇、条、个
        /// </summary>
        public string ItemUnit
        {
            get { return _ItemUnit; }
            set { _ItemUnit = value; }
        }

        /// <summary>
        /// 模型图标
        /// </summary>
        public string ItemIcon
        {
            get { return _ItemIcon; }
            set { _ItemIcon = value; }
        }

        /// <summary>
        /// 是否统计点击数
        /// </summary>
        public bool IsCountHits
        {
            get { return _IsCountHits; }
            set { _IsCountHits = value; }
        }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }

        /// <summary>
        /// 字段对象
        /// </summary>
        public string Field
        {
            get { return _Field; }
            set { _Field = value; }
        }

        /// <summary>
        /// 内容页模板路径
        /// </summary>
        public string DefaultTemplateFile
        {
            get { return _DefaultTemplateFile; }
            set { _DefaultTemplateFile = value; }
        }

        /// <summary>
        /// 是否启用收费功能
        /// </summary>
        public bool EnableCharge
        {
            get { return _EnableCharge; }
            set { _EnableCharge = value; }
        }

        /// <summary>
        /// 是否启用签收功能
        /// </summary>
        public bool EnableSignin
        {
            get { return _EnableSignin; }
            set { _EnableSignin = value; }
        }

        /// <summary>
        /// 添加程序页面路径
        /// </summary>
        public string AddInfoFilePath
        {
            get { return _AddInfoFilePath; }
            set { _AddInfoFilePath = value; }
        }

        /// <summary>
        /// 管理程序页面路径
        /// </summary>
        public string ManageInfoFilePath
        {
            get { return _ManageInfoFilePath; }
            set { _ManageInfoFilePath = value; }
        }

        /// <summary>
        /// 预览程序页面路径
        /// </summary>
        public string PreviewInfoFilePath
        {
            get { return _PreviewInfoFilePath; }
            set { _PreviewInfoFilePath = value; }
        }

        /// <summary>
        /// 批量程序页面路径
        /// </summary>
        public string BatchInfoFilePath
        {
            get { return _BatchInfoFilePath; }
            set { _BatchInfoFilePath = value; }
        }

        /// <summary>
        /// 商品性质
        /// </summary>
        public int Character
        {
            get { return _Character; }
            set { _Character = value; }
        }

        /// <summary>
        /// 每个用户可以在此内容模型下发表多少篇内容
        /// </summary>
        public int MaxPerUser
        {
            get { return _MaxPerUser; }
            set { _MaxPerUser = value; }
        }

        /// <summary>
        /// 打印页模板
        /// </summary>
        public string PrintTemplate
        {
            get { return _PrintTemplate; }
            set { _PrintTemplate = value; }
        }

        /// <summary>
        /// 是否允许投票
        /// </summary>
        public bool EnableVote
        {
            get { return _EnableVote; }
            set { _EnableVote = value; }
        }

        /// <summary>
        /// 搜索页模板
        /// </summary>
        public string SearchTemplate
        {
            get { return _SearchTemplate; }
            set { _SearchTemplate = value; }
        }

        /// <summary>
        /// 高级搜索表单模板
        /// </summary>
        public string AdvanceSearchFormTemplate
        {
            get { return _AdvanceSearchFormTemplate; }
            set { _AdvanceSearchFormTemplate = value; }
        }

        /// <summary>
        /// 高级搜索结果模板
        /// </summary>
        public string AdvanceSearchTemplate
        {
            get { return _AdvanceSearchTemplate; }
            set { _AdvanceSearchTemplate = value; }
        }

        /// <summary>
        /// 生成静态页时模型收费提示
        /// </summary>
        public string ChargeTips
        {
            get { return _ChargeTips; }
            set { _ChargeTips = value; }
        }

        /// <summary>
        /// 模型收费提示
        /// </summary>
        public string NeedPointChargeTips
        {
            get { return _NeedPointChargeTips; }
            set { _NeedPointChargeTips = value; }
        }

        /// <summary>
        /// 模型收费提示
        /// </summary>
        public string OutTimeChargeTips
        {
            get { return _OutTimeChargeTips; }
            set { _OutTimeChargeTips = value; }
        }

        /// <summary>
        /// 模型收费提示
        /// </summary>
        public string UsePointChargeTips
        {
            get { return _UsePointChargeTips; }
            set { _UsePointChargeTips = value; }
        }

        /// <summary>
        /// 评论页模板
        /// </summary>
        public string CommentManageTemplate
        {
            get { return _CommentManageTemplate; }
            set { _CommentManageTemplate = value; }
        }

        /// <summary>
        /// 匿名投稿模板
        /// </summary>
        public string AnonymouseTemplate
        {
            get { return _AnonymouseTemplate; }
            set { _AnonymouseTemplate = value; }
        }

        /// <summary>
        /// 用户添加信息模板
        /// </summary>
        public string UserAddContentTemplate
        {
            get { return _UserAddContentTemplate; }
            set { _UserAddContentTemplate = value; }
        }

        /// <summary>
        /// 验证码
        /// </summary>
        public bool EnableVerificationCode
        {
            get { return _EnableVerificationCode; }
            set { _EnableVerificationCode = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public bool EnableWap
        {
            get { return _EnableWap; }
            set { _EnableWap = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string WapField
        {
            get { return _WapField; }
            set { _WapField = value; }
        }
        #endregion
    }
}
